package com.frxuexi.park2212.payment

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Autowired
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.frxuexi.lib_base.base.BaseActivity
import com.frxuexi.park2212.R
import com.frxuexi.park2212.databinding.ActivityBillDetailBinding
import dagger.hilt.android.AndroidEntryPoint

@Route(path = "/app/BillDetailActivity")
@AndroidEntryPoint
class BillDetailActivity : BaseActivity<ActivityBillDetailBinding,PayViewModel>() {
    @Autowired
    lateinit var bid:String
    override fun initData() {
        vm.getBillById.observe(this){
            binding.bean=it
        }
    }

    override fun initView() {
        ARouter.getInstance().inject(this)
        vm.getBillById(bid.toInt())
    }

}